home *** CD-ROM | disk | FTP | other *** search
/ Champak 139 / (Vol 139) Sep 24 2011.iso / Games / kirby.swf / scripts / frame_10 / PlaceObject2_51_2 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Text File  |  2011-09-24  |  274b  |  17 lines

  1. onClipEvent(enterFrame){
  2.    if(Z >= 20)
  3.    {
  4.       if(random(5) == 3)
  5.       {
  6.          duplicateMovieClip(this.G,"G2",16385);
  7.          this.G2._x = random(220);
  8.          this.G2._y = random(70);
  9.          Z = 0;
  10.       }
  11.    }
  12.    else
  13.    {
  14.       Z += 1;
  15.    }
  16. }
  17.